package com.lyf.design.practice.theory.create.factory;

/**
 * @author LYF
 * @date 2022/6/20
 */
public class ProductA extends Product{
    private String aAttribute;
    public ProductA(String aAttribute) {
        this.aAttribute = aAttribute;
    }

    @Override
    void showInfo() {
        System.out.println(name+":"+prodTime+":"+aAttribute);
    }
    void exec(){
        System.out.println("ProductA exec...");
    }
}
